package com.qfmy.controller.common;

import com.qfmy.service.common.UserFeedbackService;
import common.result.Result;
import jakarta.annotation.Resource;
import model.entity.common.UserFeedback;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 清风明月
 * @Package com.qfmy.controller.common
 * @date 2025/5/22
 * @description 用户反馈
 */
@RestController
@SuppressWarnings("all")
@RequestMapping("/app/userFeedback")
public class UserFeedbackController {

    /**
     * 注入Service
     */
    @Resource
    private UserFeedbackService userFeedbackService;

    /**
     * 进行反馈
     */
    @PostMapping("/feedback")
    public Result feedback(@RequestBody UserFeedback userFeedback){
        userFeedbackService.feedback(userFeedback);
        return Result.ok();
    }

}
